package com.example.hotHub.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author linyunjian5
 */
@Slf4j
@Controller
public class BaseController {

    @RequestMapping({"/", "/index", "/error"})
    public ModelAndView index(ModelAndView mv) {
        mv.setViewName("forward:/index.html");
        return mv;
    }

}
